import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.StringTokenizer;


public class PList 
{
	public List<Person> lst = new ArrayList<Person>();
	IDS ds = null;
	
	public void setDS( String str )
	{
		ds = dsFactory.getInstance( str );
	}
	
	public void Print()
	{
		for(Person p: lst)
		{
			System.out.println( p.toString() );
		}
	}

	public void Save()
	{
		ds.Save(lst);
	}

	public void Load()
	{		
		lst = ds.Load();
	}
}
